package org.jeecg.modules.procurement.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 材料请购单
 * @Author: jeecg-boot
 * @Date:   2024-06-05
 * @Version: V1.0
 */
@Data
@ApiModel(value="buss_material_applicationPage对象", description="材料请购单")
public class BussMaterialApplicationPageVo {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;

	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**编号*/
	@Excel(name = "编号", width = 15)
	@ApiModelProperty(value = "编号")
    private String code;

	@ApiModelProperty(value = "状态")
	private String status;

//	@ExcelCollection(name="材料请购单明细")
//	@ApiModelProperty(value = "材料请购单明细")
//	private List<BussMaterialApplicationDetail> details;
	private String detailId;

	/**材料标号*/
	@Excel(name = "原料编号", width = 15)
	@ApiModelProperty(value = "材料标号")
	private String materialCode;
	/**材料名称*/
	@Excel(name = "原料名称", width = 15)
	@ApiModelProperty(value = "材料名称")
	private String materialName;
	/**规格*/
	@Excel(name = "规格", width = 15)
	@ApiModelProperty(value = "规格")
	private String spec;
	/**单位*/
	@Excel(name = "单位", width = 15,dicCode = "ji_unit")
	@ApiModelProperty(value = "单位")
	private String unit;
	/**数量*/
	@Excel(name = "数量", width = 15)
	@ApiModelProperty(value = "数量")
	private java.math.BigDecimal num;


	@Excel(name = "已来料数量", width = 15)
	@ApiModelProperty(value = "数量")
	private java.math.BigDecimal arrayNum;

	@Excel(name = "未来料数量", width = 15)
	@ApiModelProperty(value = "数量")
	private java.math.BigDecimal notArrayNum;

	@Excel(name = "是否来料完成", width = 15)
	@ApiModelProperty(value = "是否来料完成")
	private String isFinish;

	@Excel(name = "是否开启", width = 15)
	@ApiModelProperty(value = "是否开启")
	private String isOpen;

	@Excel(name = "用途", width = 15)
	@ApiModelProperty(value = "用途")
	private String useDesc;

	/**到货日期*/
	@Excel(name = "到货日", width = 15)
	@ApiModelProperty(value = "到货日")
	private String arrivalDate;

	/**创建人*/
	@Excel(name = "制单人", width = 15)
	@ApiModelProperty(value = "制单人")
	private String createBy;
	/**创建日期*/
	@Excel(name = "制单日期", width = 15,importFormat = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;

	/**用途*/

	/**申请id*/
	@ApiModelProperty(value = "申请id")
	private String applicationId;

	@ApiModelProperty(value = "物料id")
	private String materialId;

	@ApiModelProperty(value = "申请单编号")
	private String applicationCode;

}
